//
//  LlbTextField.m
//  videoDemo
//
//  Created by zjhc on 2017/8/30.
//  Copyright © 2017年 zjhc. All rights reserved.
//

#import "LlbTextField.h"

@implementation LlbTextField

@synthesize horizontalPadding, verticalPadding;
- (CGRect)textRectForBounds:(CGRect)bounds {
    return CGRectMake(bounds.origin.x + horizontalPadding, bounds.origin.y + verticalPadding, bounds.size.width - horizontalPadding, bounds.size.height - verticalPadding*2);
}
- (CGRect)editingRectForBounds:(CGRect)bounds {
    return [self textRectForBounds:bounds];
}
@end
